package com.hmkj.core.service.operate;

import com.hmkj.core.po.operate.Questions;
import com.hmkj.core.service.base.GenericService;

import java.util.List;

/**
 * 客服提问业务相关Service接口<br>
 *
 * @ClassName: QuestionsService
 * @author bin
 * @date   2017-11-30 03:04:53
 */
public interface QuestionsService extends GenericService<Integer, Questions> {

    /**
     * 回复问题
     * @param id
     * @param answer
     * @param adminId
     */
    void replayQuestion(Integer id,String answer,Integer adminId) throws Exception;

    /**
     * 实时获取问题
     * @param ids
     * @param userId
     * @return
     */
    List<Questions> selectListByIds(String[] ids,Integer userId);

    /**
     * 获取最新提问的问题
     * @param questions
     * @return
     */
    List<Questions> selectListByQuestions(Questions questions);
}
